﻿using Abp.Domain.Entities;
using SportsPlatform.BaseModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.Model.SportBusiness
{
    /// <summary>
    /// 参赛用户实体
    /// </summary>
    [Table("T_B_Employee")]
    public class Employee : BaseModel
    {
        /// <summary>
        /// 微信昵称
        /// </summary>
        [MaxLength(50)]
        public string NickName { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        [MaxLength(100)]
        public string HeadPortrait { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string RealName { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public int Sex { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string Phone { get; set; }

        /// <summary>
        /// 身份证号码
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string IDNumber { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime RegisterTime { get; set; }

        /// <summary>
        /// 传感器
        /// </summary>
        [MaxLength(100)]
        public string Sensor { get; set; }

        /// <summary>
        /// 微信openID
        /// </summary>
        public string OpenId { get; set; }

        /// <summary>
        /// 是否实名认证
        /// </summary>
        public bool IsAuthentication { get; set; }
    }
}
